package archforce.atp.x.ui.impl.common.model;

import archforce.atp.x.ui.impl.left.IPPortModel;
import archforce.atp.x.ui.impl.right.IPPortMappingModel;
import com.alibaba.fastjson.JSON;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author wx
 * @version 1.0
 * @date 2022/4/28 14:46
 */
public class PanelDataModel implements Serializable {

    //自定义配置页签
    private boolean isAutoModel;//右侧面板是否是匹配模式
    private List<List<IPPortModel>> connectConfigData; //链接面板配置数据
    private Map<String,List<IPPortMappingModel>> mappingConfigData;//映射面板匹配模式配置数据
    private List<IPPortMappingModel> defaultMappingConfigData;//映射面板静态模式配置数据
    private String connectConfigSelectedIndex;//链接面板选定行

    //容器平台页签
    private String user;
    private String password;

    public boolean isAutoModel() {
        return isAutoModel;
    }

    public void setAutoModel(boolean autoModel) {
        isAutoModel = autoModel;
    }

    public List<List<IPPortModel>> getConnectConfigData() {
        return connectConfigData;
    }

    public void setConnectConfigData(List<List<IPPortModel>> connectConfigData) {
        this.connectConfigData = connectConfigData;
    }

    public Map<String,List<IPPortMappingModel>> getMappingConfigData() {
        return mappingConfigData;
    }

    public void setMappingConfigData(Map<String,List<IPPortMappingModel>> mappingConfigData) {
        this.mappingConfigData = mappingConfigData;
    }

    public List<IPPortMappingModel> getDefaultMappingConfigData() {
        return defaultMappingConfigData;
    }

    public void setDefaultMappingConfigData(List<IPPortMappingModel> defaultMappingConfigData) {
        this.defaultMappingConfigData = defaultMappingConfigData;
    }

    public String getConnectConfigSelectedIndex() {
        return connectConfigSelectedIndex;
    }

    public void setConnectConfigSelectedIndex(String connectConfigSelectedIndex) {
        this.connectConfigSelectedIndex = connectConfigSelectedIndex;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this, true);
    }
}
